<template>
	<view class="report_JI_LU">
		<view v-for="(item,index) of list" :key="index" @click="C_listItem(item.id)">
			<image class="thumb" v-if="vuex_httpImageUrl" :src="vuex_httpImageUrl+'static/my/服药单.png'" mode="widthFix"></image>
			<text>{{item.createtime}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			};
		},
		mounted() {
			this.def_list()
		},
		methods:{
			C_listItem(id){
				uni.navigateTo({
					url:'./detail/detail?id='+id
				})
			},
			def_list(page = 1){
				this.$u.post('/appuser/medicinelst',{page}).then(res=>{
					this.list = res.data.list
				})
			}
		}
	}
</script>

<style lang="scss">
	.report_JI_LU{
		margin-top: 30rpx;
		>view{
			padding: 20rpx 30rpx;
			display: flex;
			align-items: center;
			background-color: #FFFFFF;
			width: 95%;
			margin: auto;
			margin-bottom: 30rpx;
			border-radius: 20rpx;
			.thumb{
				width: 45rpx;
				height: 45rpx;
				margin-right: 20rpx;
			}
		}
		
	}
</style>
